clc;
clear all;
close all;

%% INITIALIZATION
m = 4;
n = 4;
r = 4;
k = 2;
q = 0.8;
lower = 0;
upper = 0.9999;
t = 0;
z = 0;
filename = '4442.txt';
out_fid = fopen(filename, 'w');
a = rnd_near(lower,m);
b = rnd_near(upper,n);
%% RUN THE SIMULATION
test_err(a,b,m,n,r,k,q,t,z,out_fid);
fclose(out_fid);